package org.tarena.note.web.controller.user;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.tarena.note.entity.NoteResult;
import org.tarena.note.service.UserService;


@Controller
@RequestMapping("/user")
public class UpdatePwdController {
	
	@Resource
	private UserService userService;
	
	@RequestMapping("/updatePwd.form")
	@ResponseBody
	public NoteResult execute(@RequestHeader("Authorization") String base64Msg){
		System.out.println("进入了修改密码的Controller");
		System.out.println("base64Msg:"+base64Msg);
		NoteResult result = 
			userService.updatePwd(base64Msg);
			return result;
	}
}
